package ooday05;
//简单版枚举
public enum Seasons {
    SPRING("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUM("秋天","凉爽"),
    WINTER("冬天","冷");//表示Seasons的固定的4个对象,都是常量
    private String seasonName;
    private String seasonDesc;
    Seasons(String seasonName,String seasonDesc){//构造方法默认为private的
        this.seasonName =seasonName;
        this.seasonDesc = seasonDesc;
    }
    public String getSeasonName(){return seasonName;}
    public void setSeasonName(String seasonName){this.seasonName=seasonName;}
    public String getSeasonDesc(){return seasonDesc;}
    public void setSeasonDesc(String seasonDesc){this.seasonDesc=seasonDesc;}

}
